<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<script type="text/javascript" src="/jquery-2.2.3.min.js"></script>
<form method="post" action="http://127.0.0.1:8087/weibo/login" id="tradeForm">
    <input type="hidden" id="code" name="code">
</form>
<script>
    var qs = location.search.substr(1);
    let arr = qs.split("=");
    var code = arr[1];
    $(function () {
        $("#code").val(code)
        $("#tradeForm").submit();
    })
</script>
</body>
</html>